package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 message_announce_user
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
public class MessageAnnounceUser {
    private static final long serialVersionUID = 1L;

    /** 用户公告编号 */
    private Long id;

    /** $column.columnComment */
    private Integer communityId;

    /** 公告id */
    private Long announceId;

    /** 发送者编号 */
    private Long sendId;

    /** 接受者编号 */
    private Long receiveId;

    /** 状态 已读1/未读0 */
    private Integer status;

    /** 读取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date readTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private MessageAnnounce messageAnnounce;

    public MessageAnnounceUser() {
    }

    public MessageAnnounceUser(Integer communityId, Long announceId, Long receiveId, Integer status, Date createTime) {
        this.communityId = communityId;
        this.announceId = announceId;
        this.receiveId = receiveId;
        this.status = status;
        this.createTime = createTime;
    }

    public MessageAnnounce getMessageAnnounce() {
        return messageAnnounce;
    }

    public void setMessageAnnounce(MessageAnnounce messageAnnounce) {
        this.messageAnnounce = messageAnnounce;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public void setAnnounceId(Long announceId)
    {
        this.announceId = announceId;
    }

    public Long getAnnounceId() 
    {
        return announceId;
    }
    public void setSendId(Long sendId) 
    {
        this.sendId = sendId;
    }

    public Long getSendId() 
    {
        return sendId;
    }
    public void setReceiveId(Long receiveId) 
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId() 
    {
        return receiveId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setReadTime(Date readTime) 
    {
        this.readTime = readTime;
    }

    public Date getReadTime() 
    {
        return readTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("announceId", getAnnounceId())
            .append("sendId", getSendId())
            .append("receiveId", getReceiveId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("readTime", getReadTime())
            .toString();
    }
}
